package com.lvyq.qrobot.service.impl;

import com.lvyq.qrobot.entity.UserGovAffair;
import com.lvyq.qrobot.mapper.UserGovAffairMapper;
import com.lvyq.qrobot.model.receive.ReceiveMsg;
import com.lvyq.qrobot.service.UserGovAffairService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * @author lvyq  正在进行的任务
 * @version 1.0
 * Create by 2024-06-04 14:49
 */
@Service
public class UserGovAffairServiceImpl  implements UserGovAffairService {

    @Resource
    public UserGovAffairMapper userGovAffairMapper;
    /**
     * @description 获取正在进行中的任务
     * @author lvyq
     * @param[1] vo
     * @throws
     * @return UserGovAffair
     * @time 2024-06-04 14:56
     */
    @Override
    public UserGovAffair getInfo(ReceiveMsg vo) {

        UserGovAffair userGovAffair= userGovAffairMapper.selectWithUserId(vo.groupId,vo.userId);
        return userGovAffair;
    }
}
